﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MyVoteMVC.Web.Models
{
    public class Project
    {
        public Project()
        {            
        }

        /// <summary>
        /// PK Guid
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 年份
        /// </summary>
        public string Year { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 获奖情况
        /// </summary>
        public string Awards { get; set; }
        public string Description { get; set; }

        public int? ViewCount { get; set; }
    }

    public class ProjectImage
    {
        public ProjectImage()
        {

        }

        [Key]
        /// <summary>
        /// PK Guid
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 选项图片
        /// </summary>
        public byte[] Image { get; set; }
    }
}
